//
//  EPTransaction.h
//  ORM
//
//  Created by PH on 4.2.10.
//  Copyright 2010 Codesign. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "EXTransaction.h"

@class EPEnvironment;

@interface EPTransaction : NSObject {
	EXTransaction* transaction;
	EPEnvironment* environment;
	NSMutableSet* changedObjects;
	NSMutableDictionary* oldValues;
}

- (id)initWithTransaction:(EXTransaction*)_transaction environment:(EPEnvironment*)_environment;
- (void)value:(id)oldValue ofObject:(id)object changedTo:(id)newValue forKeyPath:(NSString*)keyPath;
- (void)commit;
- (void)rollback;
- (EXTransaction*)transaction;

@end
